import request from '@/utils/request'

// 收藏
export function addPetRescue(data) {
  return request({
    url: '/pet-collection',
    method: 'post',
    data
  })
}
// 列表
export function getPetRescueList(params) {
  return request({
    url: '/pet-collection',
    method: 'get',
    params
  })
}
// 批量删除
export function deletePetRescueBatch(data) {
  return request({
    url: '/pet-collection/batch',
    method: 'delete',
    params: {
      ids: data
    }
  })
}
// 取消收藏
export function cancelCollection(data) {
  return request({
    url: '/pet-collection/cancel',
    method: 'PUT',
    data
  })
}